/********************************************************************************
 ***                                                                          *** 
 ********************************************************************************
 *                                                                              * 
 *           Prject Name : MEMORIA                                              * 
 *                                                                              * 
 *             File Name : line.h                                               * 
 *                                                                              * 
 *            Programmer : LBW                                                  * 
 *                                                                              * 
 *            Start Date : 2020/12/26                                           * 
 *                                                                              * 
 *           Last Update : 2020/12/26  [LBW]                                    * 
 *                                                                              * 
 *------------------------------------------------------------------------------*
 * Functions:                                                                   * 
 *==============================================================================*/

#ifndef LINE_H
#define LINE_H

#include <QWidget>

class QLabel;
class Line : public QWidget
{
	Q_OBJECT
public:
	Line(QString strSentence,QString strAnswer,QString strWordPos,QWidget *parent = 0);
	
	int getNumOfWords() const;
	int getWordPos(int) const;
	int getWordLength(int) const;
private:
	QVector<int> wordPos,wordLength;

	QLabel *sentenceLabel;
	int numOfWords;
	int lengthOfAnswer;
};

#endif
